package com.ext.portlet.city.service.impl;

import java.util.List;

import com.ext.portlet.city.NoSuchCityException;
import com.ext.portlet.city.model.City;
import com.ext.portlet.city.service.base.CityServiceBaseImpl;
import com.ext.portlet.city.service.persistence.CityUtil;
import com.liferay.portal.PortalException;
import com.liferay.portal.SystemException;


public class CityServiceImpl extends CityServiceBaseImpl {
	
	public List<City> getCities(long regionId) 
		throws PortalException, SystemException {
	
	return CityUtil.findByRegionId(regionId, false);
	}

	public City getCity(long cityId)throws SystemException, NoSuchCityException{
	    return CityUtil.findByPrimaryKey(cityId);
	}
}
